<?php


namespace App\Models\Game;

use Illuminate\Database\Eloquent\Model;

class Stall extends Model //摆摊
{
    protected $table = "role_stall";
    public function __construct(array $attributes = [])
    {
        if (PHP_SAPI !== 'cli') die('please use on cli');
        global $gameArea;  if (!$gameArea) $gameArea = 0;
        $this->setConnection('function_'.$gameArea);
        parent::__construct($attributes);
    }
}
